// The place for global variables and functions

SERVER_BOOLEAN_TRUE = "==DUTRUE==";
SERVER_BOOLEAN_FALSE = "==DUFALSE==";
DREAMUNIT_VERSION = 1.0;


utils = {
	convertFileRefToURL: function(fref) {
		// handle the mac case
		fref = fref.replace(/:/g, "\\");
		
		// handle the PC case
		fref = fref.replace(/\\/g, "/");
		
		// add the file portion
		//if (utils.isWindows() == true) {
		//	fref = "file:////" + fref;			
		//} else
		fref = "file:///" + fref;
		
		return fref;
	},
	isWindows: function() {
		var rootfolder = site.siteRelativeToLocalPath("/");
		var isWindowsv = false;
		if (rootfolder.indexOf("\\")>-1)
			isWindowsv = true;
		return isWindowsv;
	}
}